package com.moli.iov.handle.alarm.model.dto;

import com.moli.iov.protocol.model.dto.VehicleOnLineDto;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *  车辆离线 报警
 * </p>
 *
 * @author: zql
 * @Date: 2019/3/4 9:56
 */
@Data
public class OnOffLineAlarmDto implements Serializable {
    private static final long serialVersionUID = 8478004424593763654L;

    public OnOffLineAlarmDto() {
    }

    public OnOffLineAlarmDto(VehicleOnLineDto vehicleOnLineDto, Integer onOffType) {
        this.vehicleOnLineDto = vehicleOnLineDto;
        this.onOffType = onOffType;
    }

    public OnOffLineAlarmDto(String vin, Integer onOffType) {
        this.vin = vin;
        this.onOffType = onOffType;
    }

    private String vin;

    private VehicleOnLineDto vehicleOnLineDto;

    /**
     * 报警状态 1、终端上报 2、平台判断离线报警
     */
    private Integer onOffType;
}
